package com.cwf.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cwf.system.entity.RolePermissionRelation;
import com.cwf.system.validation.role.AllotRolePermissionParams;
import com.cwf.system.vo.PermissionTreeVO;

import java.util.List;

/**
 * (RolePermissionRelation)表服务接口
 *
 * @author makejava
 * @since 2023-02-23 18:43:10
 */
public interface RolePermissionRelationService extends IService<RolePermissionRelation> {


    /**
     * 获取当前角色权限树结构
     * @param id 角色id
     */
    List<PermissionTreeVO> getRolePermissionTree(Long id);


    /**
     * 获取当前角色权限id列表
     * @param id 角色id
     * @return
     */
    List<Long> getRolePermissionIdList(Long id);



    boolean allotRolePermission(AllotRolePermissionParams params);


    List<Long> treeSelect(Long roleId);
}

